<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>ntp</Name>
        <Homepage>http://www.ntp.org</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>MIT</License>
        <License>BSD</License>
        <License>GPLv2+</License>
        <IsA>service</IsA>
        <Summary>NTP daemon and client</Summary>
        <Description>Network Time Protocol utilities and daemons that will synchronize your computer's time to Coordinated Universal Time (UTC) via the NTP protocol and NTP servers.</Description>
        <Archive sha1sum="503d68cfd3e6a9354e0e28dd38b39d850b1228b2" type="targz">https://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-4.2.8p10.tar.gz</Archive>
<!--         <Archive sha1sum="0c7919334f79854f3cbbd215a100805bedc735bf" type="targz" target="ntp-4.2.8p4">http://sourceforge.net/projects/ictom/files/ntpstat-0.2.tar.gz</Archive> -->
        <AdditionalFiles>
            <AdditionalFile permission="0755" target="fix-man-pages">fix-man-pages.sh</AdditionalFile>
        </AdditionalFiles>
        <BuildDependencies>
            <Dependency>avahi-compat-libdns_sd-devel</Dependency>
            <Dependency>libedit-devel</Dependency>
            <Dependency>net-snmp-devel</Dependency>
            <Dependency>perl-HTML-Parser</Dependency>
            <Dependency>libcap-devel</Dependency>
            <Dependency>openssl-devel</Dependency>
            <Dependency>libevent-devel</Dependency>
        </BuildDependencies>
        <!--<Patches>
            <Patch level="1">fedora/ntp-4.2.6p1-sleep.patch</Patch>
	   <Patch level="1">fedora/ntp-4.2.6p1-droproot.patch</Patch>
            <Patch level="1">fedora/ntp-4.2.6p1-bcast.patch</Patch>
            <Patch level="1">fedora/ntp-4.2.6p1-cmsgalign.patch</Patch>
            <Patch level="1">fedora/ntp-4.2.6p2-tentative.patch</Patch>
            <Patch level="1">fedora/ntp-4.2.6p1-retcode.patch</Patch>
            <Patch level="1">fedora/ntp-4.2.6p1-rtnetlink.patch</Patch>
            <Patch level="1">fedora/ntp-4.2.6p2-html2man.patch</Patch>
            <Patch level="1">fedora/ntp-4.2.6p2-htmldoc.patch</Patch>
            <Patch level="1">fedora/ntp-4.2.6p2-mlock.patch</Patch>
            <Patch level="1">fedora/ntp-4.2.6p1-nano.patch</Patch>
            <Patch level="1">fedora/ntp-4.2.4p7-getprecision.patch</Patch>
            <Patch level="1">fedora/ntp-4.2.6p1-logdefault.patch</Patch>

             ntpstat patches -->
            <!--<Patch level="0">fedora/ntpstat-0.2-clksrc.patch</Patch>
            <Patch level="0">fedora/ntpstat-0.2-multipacket.patch</Patch>
            <Patch level="0">fedora/ntpstat-0.2-sysvars.patch</Patch>
           <Patch level="0">fedora/ntpstat-0.2-maxerror.patch</Patch>
            </Patches>-->
    </Source>

    <Package>
        <Name>ntp-server</Name>
        <Summary>NTP server</Summary>
        <RuntimeDependencies>
            <Dependency>avahi-compat-libdns_sd</Dependency>
            <Dependency>libedit</Dependency>
            <Dependency>net-snmp</Dependency>
            <Dependency>libcap</Dependency>
            <Dependency>openssl</Dependency>
            <Dependency>libevent</Dependency>
            <Dependency release="current">ntp-client</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="config">/etc/ntp.conf</Path>
            <Path fileType="config">/etc/conf.d</Path>
            <Path fileType="config">/etc/ntp/crypto</Path>
            <Path fileType="executable">/usr/bin/ntpstat</Path>
            <Path fileType="executable">/usr/bin/update-leap</Path>
            <Path fileType="executable">/usr/bin/calc_tickadj</Path>
            <Path fileType="data">/usr/share/ntp/lib/NTP/Util.pm</Path>
            <Path fileType="executable">/usr/libexec</Path>
            <Path fileType="executable">/usr/sbin</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="data">/var/lib/ntp</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile owner="root" permission="0644" target="/etc/ntp.conf">fedora/ntp.conf</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/etc/conf.d/ntpd">fedora/ntpd.sysconfig</AdditionalFile>
            <AdditionalFile owner="root" permission="0600" target="/etc/ntp/crypto/pw">fedora/ntp.cryptopw</AdditionalFile>
        </AdditionalFiles>
        <Provides>
            <COMAR script="ntp-server-package.py">System.Package</COMAR>
            <COMAR script="ntpd-service.py" name="ntpd">System.Service</COMAR>
        </Provides>
    </Package>

    <Package>
        <Name>ntp-client</Name>
        <IsA>app:console</IsA>
        <PartOf>util.admin</PartOf>
        <Summary>NTP client</Summary>
        <Files>
            <Path fileType="config">/etc/conf.d/ntpdate</Path>
            <Path fileType="config">/etc/ntp/step-tickers</Path>
            <Path fileType="config">/etc/ntp/keys</Path>
            <Path fileType="executable">/usr/sbin/ntpdate</Path>
            <Path fileType="man">/usr/share/man/man8/ntpdate.8*</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile owner="root" permission="0644" target="/etc/conf.d/ntpdate">fedora/ntpdate.sysconfig</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/etc/ntp/step-tickers">fedora/ntp.step-tickers</AdditionalFile>
            <AdditionalFile owner="root" permission="0600" target="/etc/ntp/keys">fedora/ntp.keys</AdditionalFile>
        </AdditionalFiles>
        <Provides>
            <COMAR script="ntpdate-service.py" name="ntpdate">System.Service</COMAR>
            <!-- FIXME: SUID bit is needed by TASMA date & time module -->
            <COMAR script="ntpdate-package.py">System.Package</COMAR>
        </Provides>
    </Package>

    <Package>
        <Name>ntp-docs</Name>
        <IsA>data:doc</IsA>
        <Summary>NTP documentation</Summary>
        <RuntimeDependencies>
            <Dependency release="current">ntp-client</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="doc">/usr/share/doc/ntp/html</Path>
        </Files>
    </Package>

    <History>
        <Update release="4">
            <Date>2017-05-09</Date>
            <Version>4.2.8_p10</Version>
            <Comment>Version Bump</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvari@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2016-10-27</Date>
            <Version>4.2.8_p8</Version>
            <Comment>Version Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-08</Date>
            <Version>4.2.8_p4</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-01-01</Date>
            <Version>4.2.8_p4</Version>
            <Comment>First release</Comment>
            <Name>Stefan Gronewold</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
    </History>
</PISI>